package controller

import (
	"github.com/kataras/iris/mvc"
	"iris-cirsm/repositories"
	"iris-cirsm/services"
)

type CatController struct {

}

func (c *CatController) Get() mvc.View {
	catRepository := repositories.NewCatManager()
	catService := services.NewCatServiceManager(catRepository)
	CatResult := catService.GetCatName()
	return mvc.View{Name: "cat/index.html", Data: CatResult, Code: 200 }
}